package edu.cqie.smartfarm.dto;

import edu.cqie.smartfarm.verify.anno.Status;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "围栏更新DTO对象", description = "围栏更新DTO对象")
public class FenceUpdateDTO {
    @ApiModelProperty(value = "围栏ID")
    @NotNull(message = "围栏ID不能为空")
    private Integer fenceId;

    @ApiModelProperty(value = "圈舍ID")
    private Integer barnId;

    @ApiModelProperty(value = "围栏名称")
    @Length(max = 20, message = "围栏名称长度最多20个字符")
    private String fenceName;

    @ApiModelProperty(value = "状态")
    @Status
    private Integer status;
}
